//
//  APIResultError.swift
//  
//
//  Created by tank on 2021/10/19.
//

import Foundation

public enum APIResultError: Error {
    
    case appResultMapping
    
    case notFindCodeKey
    
    public var errorDescription: String? {
        switch self {
        case .appResultMapping:
            return "Failed to map data to APIResult dictionary."
        case .notFindCodeKey:
            return "Not find code key from APIResult dictionary."
        }
    }
}
